login_url = 'https://login.51job.com/login.php'

login_headers = {
    'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
    'Accept-Encoding': 'gzip, deflate, br',
    'Accept-Language': 'en,zh-CN;q=0.9,zh;q=0.8,en-US;q=0.7',
    'Cache-Control': 'no-cache',
    'Connection': 'keep-alive',
    'Content-Length': '99',
    'Content-Type': 'application/x-www-form-urlencoded',
    'Host': 'login.51job.com',
    'Origin': 'https://login.51job.com',
    'Pragma': 'no-cache',
    'Referer': 'https://login.51job.com/login.php?lang=c&url=http%3A%2F%2Fwww.51job.com%2F%3Ffrom%3Dbaidupz',
    'Upgrade-Insecure-Requests': '1',
    'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36'
}

login_data = {
    'action': 'save',
    'from_domain': 'i',
    'isread': 'on',
    'lang': 'c',
    'loginname': '13735863577',
    'password': '1991303017aaa',
    'verifycody': ''
}

post_url = 'http://search.51job.com/jobsearch/search_result.php'

post_headers = {
    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
    "Accept-Encoding": "gzip, deflate",
    "Accept-Language": "en,zh-CN;q=0.9,zh;q=0.8,en-US;q=0.7",
    "Cache-Control": "no-cache",
    "Connection": "keep-alive",
    "X-Forwarded-For": '47.104.130.19',
    "Content-Type": "application/x-www-form-urlencoded",
    "Host": "search.51job.com",
    "Origin": "http://search.51job.com",
    "Pragma": "no-cache",
    "Referer": "http://search.51job.com/jobsearch/search_result.php?fromJs=1&jobarea=080200%2C00&district=000000&funtype=0000&industrytype=00&issuedate=9&providesalary=99&keyword=%E8%AF%81%E5%88%B8&keywordtype=2&curr_page=9&lang=c&stype=1&postchannel=0000&workyear=99&cotype=99&degreefrom=99&jobterm=99&companysize=99&lonlat=0%2C0&radius=-1&ord_field=0&list_type=0&fromType=14&dibiaoid=0&confirmdate=9",
    "Upgrade-Insecure-Requests": "1",
    "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36"
}

post_params = {
    # "jobarea": "",
    "district": "000000",
    "funtype": "0000",
    "industrytype": "00",
    "issuedate": "9",
    "providesalary": "99",
    # "keyword": "",
    "keywordtype": "2",
    "curr_page": "",
    "stype": "1",
    "postchannel": "0000",
    "workyear": "99",
    "cotype": "99",
    "degreefrom": "99",
    "jobterm": "99",
    "companysize": "99",
    "lonlat": "0,0",
    "radius": "-1",
    "ord_field": "0",
    "list_type": "0",
    "fromType": "14",
    "dibiaoid": "0",
    "confirmdate": "9"
}

post_data = {
    "postchannel": "0000",
    "stype": "1",
    # "jobarea": "",
    "district": "000000",
    "dibiaoid": "0",
    "address": "",
    "lonlat": "0,0",
    "line": "",
    "radius": "-1",
    "funtype": "0000",
    "industrytype": "00",
    "issuedate": "9",
    "keywordtype": "2",
    # "keyword": "",
    "workyear": "99",
    "providesalary": "99",
    # "cotype": "99",
    "degreefrom": "99",
    "jobterm": "99",
    "ord_field": "0",
    "list_type": "0",
    # "curr_page": "",
    "nStart": "1",
    "ppc_num": "0",
    "ads_num": "0",
    "personnel_department_ad_num": "0",
    "jobid_list": '',
    "jobid_count": "",
    "schTime": "372",
    "confirmdate": "9",
    "welfare": "",
    "fromType": "14",
    # "companysize": "99",
    "from": "",
    "providesalary_tmp": "99",
    "cotype_tmp": "99",
    "workyear_tmp": "99",
    "degreefrom_tmp": "99",
    "companysize_tmp": "99"
}

company_headers = {
    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
    "Accept-Encoding": "gzip, deflate",
    "Accept-Language": "en,zh-CN;q=0.9,zh;q=0.8,en-US;q=0.7",
    "Cache-Control": "no-cache",
    "Connection": "keep-alive",
    "Host": "jobs.51job.com",
    "Pragma": "no-cache",
    "Referer": "http://search.51job.com/jobsearch/search_result.php?fromJs=1&jobarea=080200%2C00&district=000000&funtype=0000&industrytype=00&issuedate=9&providesalary=99&keyword=java&keywordtype=2&curr_page=5&lang=c&stype=1&postchannel=0000&workyear=99&cotype=99&degreefrom=99&jobterm=99&companysize=99&lonlat=0%2C0&radius=-1&ord_field=0&list_type=0&fromType=14&dibiaoid=0&confirmdate=9",
    "Upgrade-Insecure-Requests": "1",
    "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36"
}

init_params = {
    'lang': 'c',
    'stype': '1',
    'postchannel': '0000',
    'workyear': '99',
    'cotype': '99',
    'degreefrom': '99',
    'jobterm': '99',
    'companysize': '99',
    'lonlat': '0,0',
    'radius': '-1',
    'ord_field': '0',
    'confirmdate': '9',
    'fromType': '',
    'dibiaoid': '0',
    'address': '',
    'line': '',
    'specialarea': '00',
    'from': '',
    'welfare': ''
}

index_params = {
    'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
    'Accept-Encoding': 'gzip, deflate',
    'Accept-Language': 'en,zh-CN;q=0.9,zh;q=0.8,en-US;q=0.7',
    'Cache-Control': 'no-cache',
    'Connection': 'keep-alive',
    'Host': 'www.51job.com',
    'Pragma': 'no-cache',
    'Upgrade-Insecure-Requests': '1',
    'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36'
}

jd_headers = {
    'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
    'Accept-Encoding': 'gzip, deflate',
    'Accept-Language': 'en,zh-CN;q=0.9,zh;q=0.8,en-US;q=0.7',
    'Cache-Control': 'no-cache',
    'Connection': 'keep-alive',
    'Host': 'jobs.51job.com',
    'Pragma': 'no-cache',
    'Referer': '',
    'Upgrade-Insecure-Requests': '1',
    'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36'
}
